import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;

public class FileToFile {
	public static void main(String[] args) {
		FileOutputStream out=null;
		BufferedReader bReader=null;
		FileReader reader =null;
		try{
			File f = new File("E:/3.txt");
			File of = new File("E:/2.txt");
			if(!of.exists())
			{
				of.createNewFile();
			}
			reader = new FileReader(f);//定义一个fileReader对象，用来初始化BufferedReader
	        bReader = new BufferedReader(reader);//new一个BufferedReader对象，将文件内容读取到缓存
	        StringBuilder sb = new StringBuilder();
			out=new FileOutputStream(of);
	        String s = "";
	        while ((s =bReader.readLine()) != null) {//逐行读取文件内容，不读取换行符和末尾的空格
	            sb.append(s + "\n");//将读取的字符串添加换行符后累加存放在缓存中
	        }
	        s = sb.toString();
	        s = s.split("第275 局？")[1];
//	        s = s.replaceAll("  \n", "");
//	        s = s.replaceAll("        ", "");
	        out.write(s.getBytes());
	//		int c;
	//        byte buffer[]=new byte[1024];
	//        while((c=fis.read(buffer))!=-1){
	//            for(int i=0;i<c;i++)
	//                out.write(buffer[i]);        
	//        }
		}catch(Exception e){
			
		}finally{
			try {
				out.close();
				bReader.close();
				reader.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
//		Scanner input = new Scanner(System.in);
//		int i =  input.nextInt();
//		System.out.println("first:"+i++);
//		System.out.println(i);
//		addI(i);
//		System.out.println("sencond:"+i++);
//		System.out.println("sencond:"+i++);
//		String str = "a";
//		changeString(str);
//		System.out.println("a:"+str);
	}
	
	public static void addI(int i){
		i = i +1;
	}
	public static void changeString(String str){
		str = "abc11";
		System.out.println("abc:"+str);
	}
}
